
	<div class="page-header">

		<h1><?php echo $program_info->name ;?>
			</br>
	<a href="<?=base_url().'public/upload/'.$program_info->id.'/'.$program_info->id.'.zip'?>" style="color: white;"><span class="btn btn-primary">Download now </span></a>
  <?php if($this->user->isLogged()){ ?>
               <a href="<?=base_url().'programs_managment/edit_program/'.$program_info->id ?>" style="color: white;"><span class="btn btn-success">Edituj</span></a>
               <a href="<?=base_url().'programs_managment/delete_program/'.$program_info->id  ?>" style="color: white;"><span class="btn btn-danger">Vymaž</span></a>
               
   <?php } ?>

			
		<div class="rating">
		<input type="hidden" value="<?=$pi_rating?>" id='ratingval'>
		<div class="star" data-val="1"></div>
		<div class="star" data-val="2"></div>
		<div class="star" data-val="3"></div>
		<div class="star" data-val="4"></div>
		<div class="star" data-val="5"></div>
		<form id="ratingAjax">
		<input type="hidden" value="" id="ajaxRating" name="ajaxRating" >
		<input type="hidden" value="<?=$program_info->id;?>" id="programId" name="programId" >
		</form>

		</div>
		<span class="rating-val">4/5
		</span>
	</h1>

	<h5><code>Zaevidované : </code><?=' '.sqlTimestampToHuman($program_info->time, 'slovak')?><br/>
            <code>Autori : </code><?=' '.$program_info->autors?>
	</h5>
		<div class="rating-error"></div>
	</div>
	<div class="page-header">
	<h3>Informácie o programe</h3>
	<div class="row-fluid">
		<div class="span6">
			<span class="label label-info">Komentár ku programu</span>
			<p class="comment"><?=$program_info->comment?></p>
		
		</div>
		<div class="span6">
		
			<span class="label label-info">Požiadavky ku programu</span>
			<p class="req"><?=$program_info->requirements?></p>
		</div>
		

	</div>
	</div>
		<div class="row-fluid">
		
		<div class="span3">
			<code>Typ práce</code>
			<ul> <?php foreach ($workType as $key ) {
				?><li>
                                    <?=$key->name.' '?>
                                </li><?php
				} ;?></ul>
			<code>Predmet</code>
			<ul> <?php foreach ($classroomSubject as $key ) {
				?><li>
                                    <?=$key->name.' '?>
                                </li><?php
				} ;?></ul>
				
		</div>
		<div class="span3">
			<code>Operačný systém</code>
			<ul><?php foreach ($programOs as $key ) {
				?><li>
                                    <?=$key->name.' '?>
                                </li><?php
				} ;?></ul>
			<code>Určené pre</code>
			<ul><?php foreach ($studyLevel as $key ) {
				?><li>
                                    <?=$key->name.' '?>
                                </li><?php
				} ;?></ul>	
		</div>
		<div class="span3">
			<code>Jazyk</code>
			<ul> <?php foreach ($language as $key ) {
				?><li>
                                    <?=$key->name.' '?>
                                </li><?php
				} ;?></ul>
		</div>

	</div>

	
	



	<div style="clear:both;"></div>
  <script type="text/javascript" src="<?=base_url().'public/js/rating.js'?>"></script> 
</div>
